﻿
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Oliving.Edge.Model.Models.XLT
{
    ///<summary>
    ///保洁记录
    ///</summary> 

    [SugarTable("CD_CleaningRecord")]
    [Serializable]
    public class CD_CleaningRecord
    {
        public CD_CleaningRecord()
        {
        }

        /// <summary> 
        /// Desc:编号 
        /// Default: 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(IsPrimaryKey = true, ColumnName = "CleaningRecordId", ColumnDescription = "编号", Length = 50, ColumnDataType = "nvarchar")]
        public string CleaningRecordId { get; set; } = Guid.NewGuid().ToString();

        /// <summary> 
        /// Desc:项目ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ProjectId", ColumnDescription = "项目ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ProjectId { get; set; }

        /// <summary> 
        /// Desc:编号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "RecordCode", ColumnDescription = "编号", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string RecordCode { get; set; }

        /// <summary> 
        /// Desc:保洁点ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CleaningPointId", ColumnDescription = "保洁点ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CleaningPointId { get; set; }

        /// <summary> 
        /// Desc:检查结果 0=正常 1=异常 
        /// Default:((0)) 
        /// Nullable:False 
        /// </summary> 

        [SugarColumn(ColumnName = "RESULT", ColumnDescription = "检查结果 0=正常 1=异常")]
        public int RESULT { get; set; }

        /// <summary> 
        /// Desc:备注 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", IsNullable = true, Length = 200, ColumnDataType = "nvarchar")]
        public string Remark { get; set; }

        /// <summary> 
        /// Desc:经度 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Lng", ColumnDescription = "经度", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string Lng { get; set; }

        /// <summary> 
        /// Desc:纬度 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Lat", ColumnDescription = "纬度", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string Lat { get; set; }

        /// <summary> 
        /// Desc:巡检定位 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "LOCATION", ColumnDescription = "巡检定位", IsNullable = true, Length = 200, ColumnDataType = "nvarchar")]
        public string LOCATION { get; set; }

        /// <summary> 
        /// Desc:表单ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "FormId", ColumnDescription = "表单ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string FormId { get; set; }

        /// <summary> 
        /// Desc:软删除 0未删除，1 已删除 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "DeleteMark", ColumnDescription = "软删除 0未删除，1 已删除", IsNullable = true)]
        public int? DeleteMark { get; set; }

        /// <summary> 
        /// Desc:排序 排序 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "SortCode", ColumnDescription = "排序 排序", IsNullable = true)]
        public int? SortCode { get; set; }

        /// <summary> 
        /// Desc:是否启用 0未启用，1启用 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "Enabled", ColumnDescription = "是否启用 0未启用，1启用", IsNullable = true)]
        public int? Enabled { get; set; }

        /// <summary> 
        /// Desc:保洁时间 创建时间 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateDate", ColumnDescription = "保洁时间 创建时间", IsNullable = true)]
        public DateTime? CreateDate { get; set; }

        /// <summary> 
        /// Desc:保洁用户ID 创建的用户ID 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateUserID", ColumnDescription = "保洁用户ID 创建的用户ID", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CreateUserID { get; set; }

        /// <summary> 
        /// Desc:保洁用户名称 创建的用户名称 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "CreateUserName", ColumnDescription = "保洁用户名称 创建的用户名称", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string CreateUserName { get; set; }

        /// <summary> 
        /// Desc:检查时间 修改日期 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyDate", ColumnDescription = "检查时间 修改日期", IsNullable = true)]
        public DateTime? ModifyDate { get; set; }

        /// <summary> 
        /// Desc:检查用户编号 修改用户编号 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyUserId", ColumnDescription = "检查用户编号 修改用户编号", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ModifyUserId { get; set; }

        /// <summary> 
        /// Desc:检查用户姓名 修改的用户姓名 
        /// Default: 
        /// Nullable:True 
        /// </summary> 

        [SugarColumn(ColumnName = "ModifyUserName", ColumnDescription = "检查用户姓名 修改的用户姓名", IsNullable = true, Length = 50, ColumnDataType = "nvarchar")]
        public string ModifyUserName { get; set; }

    }

}
